package com.homegoods.login.model;


import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import java.util.List;
import java.util.Map;


/**
 * 用户登录后后台传回的资料
 *
 * @author QiQi
 * @date 2017/8/9
 */

public class UserModel {
    private String SocketID;
    private String RealName;
    private String LoginName;
    private String DptmtSid;
    private String SmallPic;
    private String SexStatu;
    private String BirthDay;
    private String NickName;
    private String EMail;
    private String LatLongitude;
    private String LineStatu;
    private String VerifyStatus;
    private String Signature;
    private List<Map<String,Object>> PushSign;
    private String DefaultAddr;
    private String rid;
    private String RoleSid;
    private String RoleName;
    private String CityName;
    private String CitySid;
    private String AmountProceeds;
    private String Integral;
    private String HouseholdReg;
    private String CapitalVol;
    private String IDCard;
    private List<Certsfc> certsfc;
    private String sid;
//    private String LoginToken;
    private String MPhone;
    private String openid;
    private String uid;

    public static UserModel parserUserBean(JSONObject userData) {
        return parserUserBean(userData.toJSONString());
    }

    public static UserModel parserUserBean(String userData) {
        return JSON.parseObject(userData, UserModel.class);
    }

    public String getSocketID() {
        return SocketID;
    }

    public void setSocketID(String socketID) {
        SocketID = socketID;
    }

    public String getRealName() {
        return RealName;
    }

    public void setRealName(String realName) {
        RealName = realName;
    }

    public String getLoginName() {
        return LoginName;
    }

    public void setLoginName(String loginName) {
        LoginName = loginName;
    }

    public String getDptmtSid() {
        return DptmtSid;
    }

    public void setDptmtSid(String dptmtSid) {
        DptmtSid = dptmtSid;
    }

    public String getSmallPic() {
        return SmallPic;
    }

    public void setSmallPic(String smallPic) {
        SmallPic = smallPic;
    }

    public String getSexStatu() {
        return SexStatu;
    }

    public void setSexStatu(String sexStatu) {
        SexStatu = sexStatu;
    }

    public String getBirthDay() {
        return BirthDay;
    }

    public void setBirthDay(String birthDay) {
        BirthDay = birthDay;
    }

    public String getNickName() {
        return NickName;
    }

    public void setNickName(String nickName) {
        NickName = nickName;
    }

    public String getEMail() {
        return EMail;
    }

    public void setEMail(String EMail) {
        this.EMail = EMail;
    }

    public String getLatLongitude() {
        return LatLongitude;
    }

    public void setLatLongitude(String latLongitude) {
        LatLongitude = latLongitude;
    }

    public String getLineStatu() {
        return LineStatu;
    }

    public void setLineStatu(String lineStatu) {
        LineStatu = lineStatu;
    }

    public String getVerifyStatus() {
        return VerifyStatus;
    }

    public void setVerifyStatus(String verifyStatus) {
        VerifyStatus = verifyStatus;
    }

    public String getSignature() {
        return Signature;
    }

    public void setSignature(String signature) {
        Signature = signature;
    }

    public List<Map<String, Object>> getPushSign() {
        return PushSign;
    }

    public void setPushSign(List<Map<String, Object>> pushSign) {
        PushSign = pushSign;
    }

    public String getDefaultAddr() {
        return DefaultAddr;
    }

    public void setDefaultAddr(String defaultAddr) {
        DefaultAddr = defaultAddr;
    }

    public String getRid() {
        return rid;
    }

    public void setRid(String rid) {
        this.rid = rid;
    }

    public String getRoleSid() {
        return RoleSid;
    }

    public void setRoleSid(String roleSid) {
        RoleSid = roleSid;
    }

    public String getRoleName() {
        return RoleName;
    }

    public void setRoleName(String roleName) {
        RoleName = roleName;
    }

    public String getCityName() {
        return CityName;
    }

    public void setCityName(String cityName) {
        CityName = cityName;
    }

    public String getCitySid() {
        return CitySid;
    }

    public void setCitySid(String citySid) {
        CitySid = citySid;
    }

    public String getAmountProceeds() {
        return AmountProceeds;
    }

    public void setAmountProceeds(String amountProceeds) {
        AmountProceeds = amountProceeds;
    }

    public String getIntegral() {
        return Integral;
    }

    public void setIntegral(String integral) {
        Integral = integral;
    }

    public String getHouseholdReg() {
        return HouseholdReg;
    }

    public void setHouseholdReg(String householdReg) {
        HouseholdReg = householdReg;
    }

    public String getCapitalVol() {
        return CapitalVol;
    }

    public void setCapitalVol(String capitalVol) {
        CapitalVol = capitalVol;
    }

    public String getIDCard() {
        return IDCard;
    }

    public void setIDCard(String IDCard) {
        this.IDCard = IDCard;
    }

    public List<Certsfc> getCertsfc() {
        return certsfc;
    }

    public void setCertsfc(List<Certsfc> certsfc) {
        this.certsfc = certsfc;
    }


    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

//    public String getLoginToken() {
//        return LoginToken;
//    }
//
//    public void setLoginToken(String loginToken) {
//        LoginToken = loginToken;
//    }

    public String getMPhone() {
        return MPhone;
    }

    public void setMPhone(String MPhone) {
        this.MPhone = MPhone;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public class Certsfc {
      /**
         * "tag": "zyzg",
         * * 				"title": "职业资格证",
         * * 				"url": "",
         * * 				"statu": "0"
         */
        private String tag;
        private String title;
        private String url;
        private String statu;

        public String getTag() {
            return tag;
        }

        public void setTag(String tag) {
            this.tag = tag;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getStatu() {
            return statu;
        }

        public void setStatu(String statu) {
            this.statu = statu;
        }
    }
    private String token;
    private String tokenHead;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getTokenHead() {
        return tokenHead;
    }

    public void setTokenHead(String tokenHead) {
        this.tokenHead = tokenHead;
    }
}
